<?php // content="text/plain; charset=utf-8"
// $Id: groupbarex1.php,v 1.2 2002/07/11 23:27:28 aditus Exp $
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');

$data1=array(35,160,6,8,5,6,7,8,9,10,12,13);
$data2=array(35,190,190,190,32,45,64,31,99,33,35,23);
$data3=array(35,100,10,90,10,20,30,40,50,60,70,23);
$data4=array(35,10,120,112,10,12,13,40,50,60,11,43);
$data5=array(63,40,12,122,40,50,60,99,77,66,34,89);

$graph = new Graph(600,300,'auto');
$graph->SetScale("textlin");
$graph->SetShadow();
$graph->img->SetMargin(40,30,40,40);
$graph->title->Set('Reservation meeting room');
$graph->subtitle->Set('barchart(month)');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->legend->Pos("center","bottom");

//$graph->xaxis->SetTickLabels($gDateLocale->GetShortMonth());
$graph->xaxis->title->Set('week(September)');
$graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);

$graph->yaxis->title->Set('reservation');
$graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);

$bplot1 = new BarPlot($data1);
$bplot2 = new BarPlot($data2);
$bplot3 = new BarPlot($data3);
$bplot4 = new BarPlot($data4);
$bplot5 = new BarPlot($data5);

$bplot1->SetFillColor("orange");
$bplot2->SetFillColor("brown");
$bplot3->SetFillColor("pink");
$bplot4->SetFillColor("blue");
$bplot4->SetFillColor("yellow");

$bplot1->SetLegend("1201A");
$bplot2->SetLegend("1202A");
$bplot3->SetLegend("1207");
$bplot4->SetLegend("1302");
$bplot5->SetLegend("1408");

$bplot1->SetShadow();
$bplot2->SetShadow();
$bplot3->SetShadow();
$bplot4->SetShadow();
$bplot5->SetShadow();




$gbarplot = new GroupBarPlot(array($bplot1,$bplot2,$bplot3,$bplot4,$bplot5));
$gbarplot->SetWidth(0.6);
$graph->Add($gbarplot);

$graph->Stroke();
?>
